package com.cuit.zuke.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cuit.zuke.system.entity.SysMenuEntity;

import java.util.List;

/**
 * @program: zuke
 * @description: 菜单管理
 * @author: KamTang
 * @create: 2022-03-31 10:12
 **/
public interface SysMenuService extends IService<SysMenuEntity> {


    /**
     * 获取所有菜单
     *
     * @return
     */
    List<SysMenuEntity> getAllMenu();

    /**
     * 获取导航菜单
     *
     * @param userId id
     * @return 树形输出所有
     */
    List<SysMenuEntity> getNavMenu(Long userId);

    /**
     * 根据父菜单，查询子菜单
     * @param parentId
     * @return
     */
    List<SysMenuEntity> queryListParentId(Long parentId);

    /**
     * 删除
     *
     * @param menuId 菜单id
     */
    void delete(Long menuId);

    /**
     * 获取不包含按钮的菜单列表
     *
     * @return List<SysMenuEntity>
     */
    List<SysMenuEntity> queryNotButtonList();
}
